Login Method Based on Fingerprint Recognition and Device

ABSTRACT

Embodiments of this application relate to a login method based on fingerprint recognition and a device. The method includes: collecting fingerprint data when a power-on signal is detected; matching the fingerprint data with preset fingerprint data that is prestored; and logging in to a terminal device if the matching succeeds. According to the login method based on fingerprint recognition and the device provided in this application, not only terminal device login efficiency can be improved, but also a battery life of the terminal device can be increased.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/608,517, filed on Oct. 25, 2019, which is a national stage ofInternational Application No. PCT/CN2017/082553, filed on Apr. 28, 2017.Both of the aforementioned applications are hereby incorporated byreference in their entireties.

TECHNICAL FIELD

Embodiments of this application relate to communications technologies,and in particular, to a login fingerprint recognition device.

BACKGROUND

Currently, a user needs to process, by using a computer, a lot ofimportant information related to personal privacy or businesstransactions. Because a fingerprint is unique, the fingerprint isusually used to confirm a personal identity of the user to ensureinformation security.

FIG. 1 is a structural block diagram of login by using a fingerprint inthe prior art. As shown in FIG. 1, the system includes a fingerprintsensor, a fingerprint authentication apparatus, a memory, a processor,an embedded controller (Embedded Controller, EC), a power controller, abattery, a DC/DC converter, an AC/DC adapter, and a platform powersupply. In the prior art, when a fingerprint recognition manner is usedfor login, in a shutdown state, a VCC 1 usually continuously suppliespower to the fingerprint sensor and the fingerprint authenticationapparatus. After the fingerprint sensor inputs fingerprint informationof a user, the fingerprint authentication apparatus receives thefingerprint information, then outputs a control signal to control theDC/DC converter to output a board platform power supply to power on thesystem, and verifies whether the fingerprint information matches. If thefingerprint information matches, fingerprint input and board power-onoperations are completed, and system login is completed.

However, in the prior art, when the fingerprint login manner is used,power needs to be supplied to the fingerprint sensor in the shutdownstate, and therefore, a battery life is reduced.

SUMMARY

Embodiments of this application provide a login method based onfingerprint recognition and a device, to resolve a technical problemthat a battery life is relatively short when a fingerprint is used forauthentication and login.

According to a first aspect, an embodiment of this application providesa login method based on fingerprint recognition, including:

collecting fingerprint data when a power-on signal is detected;

matching the fingerprint data with preset fingerprint data that isprestored; and

logging in to a terminal device if the matching succeeds.

In this solution, because the terminal device collects the fingerprintdata when detecting the power-on signal, the fingerprint data may beinput in a process of completing power-on. Therefore, the followingphenomenon can be avoided: Power-on and fingerprint authenticationoperations need to be performed a plurality of times, and power needs tobe continuously supplied to a fingerprint sensor in a shutdown state. Inthis way, not only terminal device login efficiency can be improved, butalso a battery life of the terminal device can be increased.

In a possible design, the method further includes:

if the fingerprint data fails to match the preset fingerprint data thatis prestored, outputting prompt information, where the promptinformation includes at least one of text information, acousticinformation, or light information.

In this solution, if the collected fingerprint data does not match thepreset fingerprint data that is prestored, in other words, when thematching fails, prompt information is output to remind a user that aninput fingerprint is incorrect.

According to a second aspect, an embodiment of this application providesa terminal device, where the terminal device includes a power button, afingerprint collection module, a fingerprint recognition module, a powercontrol module, and a login module, and the fingerprint collectionmodule is disposed on the power button, where

the power control module is configured to: when detecting that the powerbutton is pressed, control power output to supply power to thefingerprint collection module;

the fingerprint collection module is configured to collect fingerprintdata, and send the fingerprint data to the fingerprint recognitionmodule;

the fingerprint recognition module is configured to match thefingerprint data with preset fingerprint data that is prestored; and

the login module is configured to log in to the terminal device when thematching performed by the fingerprint recognition module succeeds.

In this solution, because the fingerprint collection module is disposedon the power button, after a user presses the power button, and power issupplied to the fingerprint collection module, the fingerprintcollection module starts to collect the fingerprint data. In this way,the fingerprint data may be input in a process of completing power-on.Therefore, the following phenomenon can be avoided: Power-on andfingerprint authentication operations need to be performed a pluralityof times, and power needs to be continuously supplied to a fingerprintsensor in a shutdown state. In this way, not only terminal device loginefficiency can be improved, but also a battery life of the terminaldevice can be increased.

In a possible design, the fingerprint recognition module is located in acentral processing unit CPU or a micro control unit MCU.

In a possible design, the terminal device further includes a contact,the power button interworks with the contact, and when the contact isclosed, the power control module controls power output to supply powerto the fingerprint collection module, and a stroke of the power buttonis less than or equal to a maximum stroke of the power button.

In a possible design, after the matching succeeds, the fingerprintrecognition module sends a matching success message to the login module,so that the login module directly performs a login operation.

In a possible design, after the matching succeeds, the fingerprintrecognition module sends the prestored fingerprint data to the loginmodule, and this may be applied to various systems with fingerprintverification.

In a possible design, if the fingerprint data fails to match the presetfingerprint data that is prestored, prompt information is output, wherethe prompt information includes at least one of text information,acoustic information, or light information, to remind the user whetherfingerprint recognition succeeds.

In a possible design, after completing fingerprint recognition, thefingerprint recognition module sends the matching success message or theprestored fingerprint data to the login module, to speed up the login.

In a possible design, the fingerprint recognition module caches amatching success result, and sends the matching success message or thepreset fingerprint data to the login module when the terminal deviceenters a login stage, so that fingerprint recognition is synchronizedwith system login verification.

According to the login method based on fingerprint recognition and thedevice provided in this application, the fingerprint data is collectedwhen the power-on signal is detected, and the fingerprint data ismatched with the preset fingerprint data that is prestored. If thematching succeeds, the user logs in to the terminal device. Because theterminal device collects the fingerprint data when detecting thepower-on signal, the fingerprint data may be input in a process ofcompleting power-on. Therefore, the following phenomenon can be avoided:Power-on and fingerprint authentication operations need to be performeda plurality of times, and power needs to be continuously supplied to afingerprint sensor in a shutdown state. In this way, not only terminaldevice login efficiency can be improved, but also a battery life of theterminal device can be increased.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a structural block diagram of login by using a fingerprint inthe prior art;

FIG. 2 is a schematic flowchart of Embodiment 1 of a login method basedon fingerprint recognition according to this application;

FIG. 3 is a schematic diagram of an interface for outputting promptinformation;

FIG. 4 is a schematic structural diagram of Embodiment 1 of a terminaldevice according to the embodiments of this application;

FIG. 5 is a schematic structural diagram 1 of a power button; and

FIG. 6 is a schematic structural diagram 2 of a power button.

DESCRIPTION OF EMBODIMENTS

A login method based on fingerprint recognition in the embodiments ofthis application is applicable to a terminal device such as a computeror a tablet computer (Portable Android Device, PAD). Certainly, themethod may also be applied to another device that has a power button andto which login can be performed by using fingerprint data.

The login method based on fingerprint recognition in the embodiments ofthis application mainly focuses on how to prolong a battery life whileimproving user experience when using a fingerprint for verification onterminal device login. In a terminal device login process, there may betwo implementations of using a fingerprint for authentication. In oneimplementation, a power button and a fingerprint sensor are separated,to be specific, a user needs to operate the power button and input afingerprint once again during login. Consequently, the user needs toperform an operation twice, and has poor experience. In the otherimplementation, power needs to be continuously supplied to a fingerprintsensor when a system is in a shutdown state, and after a user inputs afingerprint, components other than the sensor are powered on. Iffingerprint authentication succeeds, a login operation is performed.However, in this manner, power needs to be supplied to the fingerprintsensor in the shutdown state, and therefore, a battery life is reduced.

Therefore, the login method based on fingerprint recognition and adevice in the embodiments of this application are intended to resolve aproblem that power-on and fingerprint authentication operations need tobe performed a plurality of times and a technical problem that a batterylife is relatively short when a fingerprint is used for authenticationand login.

Specific embodiments are used below to describe in detail the technicalsolutions of this application. The following several specificembodiments may be combined with each other, and a same or similarconcept or process may not be described repeatedly in some embodiments.

FIG. 2 is a schematic flowchart of Embodiment 1 of a login method basedon fingerprint recognition according to this application. Thisembodiment of this application provides a login method based onfingerprint recognition. The method may be performed by any apparatusthat performs the login method based on fingerprint recognition, and theapparatus may be implemented by using software and/or hardware. In thisembodiment, the apparatus may be integrated into a terminal device. Asshown in FIG. 2, the method in this embodiment may include the followingsteps.

Step 201: Collect fingerprint data when a power-on signal is detected.

In this embodiment, when a power button is pressed by a user, theterminal device detects the power-on signal. In this case, a powercontroller in the terminal device controls a DC/DC converter to bepowered on to output each path of power supply, including a fingerprintsensor power supply. In a process in which the user presses the powerbutton, a fingerprint sensor is powered on, and starts to collectfingerprint data before a finger of the user leaves the power button.

Step 202: Match the fingerprint data with preset fingerprint data thatis prestored.

In this embodiment, fingerprint data of one or more users who areallowed to log in to the terminal device is prestored in the terminaldevice, and after collecting the fingerprint data, the terminal devicematches the collected fingerprint data with the preset fingerprint datathat is prestored.

In a possible implementation, the preset fingerprint data may befingerprint data previously input by the user, or may be fingerprintdata obtained through synchronization with a server, and may be afingerprint image, or may be an eigenvalue extracted based on afingerprint image. The foregoing data may be encrypted or unencryptedfor storage.

Step 203: Log in to the terminal device if the matching succeeds.

In this embodiment, after the terminal device matches the collectedfingerprint data with the preset fingerprint data that is prestored, andif the matching succeeds, the user logs in to the terminal device.

According to the login method based on fingerprint recognition providedin this embodiment of this application, the fingerprint data iscollected when the power-on signal is detected, and the fingerprint datais matched with the preset fingerprint data that is prestored. If thematching succeeds, the user logs in to the terminal device. Because theterminal device collects the fingerprint data when detecting thepower-on signal, the fingerprint data may be input in a process ofcompleting power-on. Therefore, the following phenomenon can be avoided:Power-on and fingerprint authentication operations need to be performedtwice, or power needs to be continuously supplied to the fingerprintsensor in a shutdown state. In this way, not only terminal device loginefficiency can be improved, but also a battery life of the terminaldevice can be increased.

Optionally, if the fingerprint data fails to match the presetfingerprint data that is prestored, prompt information is output, wherethe prompt information includes at least one of text information,acoustic information, or light information. The prompt information mayinstruct the user to move a finger or press the power button again.

Specifically, if the collected fingerprint data does not match thepreset fingerprint data that is prestored, in other words, when thematching fails, prompt information is output to remind the user that aninput fingerprint is incorrect. FIG. 3 is a schematic diagram of aninterface for outputting prompt information. As shown in FIG. 3, ifmatching fails, “Fingerprint input error” information is shown on theinterface of the terminal device to remind the user. In actualapplication, in addition to the text information, the prompt informationmay include the acoustic information, the light information, or thelike. For example, the terminal device may remind the user through voicebroadcast or light blinking or by using acoustic information. Inaddition, the terminal device may remind the user in only one of theforegoing manners in the prompt information, or remind the user in acombination of two or more of the foregoing manners in the promptinformation. A specific manner of the prompt information is not limitedin this embodiment.

FIG. 4 is a schematic structural diagram of Embodiment 1 of a terminaldevice according to the embodiments of this application. As shown inFIG. 4, the terminal device includes a power button, a fingerprintcollection module, a fingerprint recognition module, and a power controlmodule, and the fingerprint collection module is disposed on the powerbutton, where

the power control module is configured to: when detecting that the powerbutton is pressed, control power output to supply power to thefingerprint collection module;

the fingerprint collection module is configured to collect fingerprintdata, and send the fingerprint data to the fingerprint recognitionmodule;

the fingerprint recognition module is configured to match thefingerprint data with preset fingerprint data that is prestored; and

the login module is configured to log in to the terminal device when thematching performed by the fingerprint recognition module succeeds.

In this embodiment, the system includes a fingerprint and button module,the fingerprint recognition module, a memory, an EC, the power controlmodule, a DC/DC converter, a battery, an AC/DC adapter, and a platformpower supply, where the fingerprint and button module is configured toprovide a power-on/shutdown function and fingerprint input, the batteryis an apparatus that supplies power to a board, the AC/DC adapter is anapparatus that charges the battery, the DC/DC converter is a board powerconverter configured to provide a board chip power supply, the powercontroller is configured to control the DC/DC converter to output eachpath of power supply, the fingerprint recognition module is configuredto recognize a collected fingerprint, the EC is a board peripheral andI/O control device, the memory is an external memory chip of aprocessor, and the platform power supply is a power supply forcomponents other than the fingerprint collection module, for example, aCPU power supply or an EC power supply.

The fingerprint collection module is disposed on the power button toform the fingerprint and button module. After a user presses the powerbutton, the power control module detects a power-on signal. In thiscase, the power control module in the terminal device controls the DC/DCconverter to be powered on to output each path of power supply,including a fingerprint collection module power supply. In a process inwhich the user presses the power button, the fingerprint collectionmodule is powered on, and starts to collect fingerprint data before afinger of the user leaves the power button. The power control module maybe a power controller, the fingerprint collection module may be afingerprint sensor, and the fingerprint recognition module may be acentral processing unit (Central Processing Unit, CPU) or a microcontrol unit (Microcontroller Unit, MCU) of the terminal device.

When the fingerprint recognition module is a CPU, after collecting thefingerprint data, the fingerprint collection module caches thefingerprint data. After the CPU is powered on, the CPU sends anotification message to the fingerprint collection module, and afterreceiving the notification message, the fingerprint collection modulesends the collected fingerprint data to the fingerprint recognitionmodule. The fingerprint collection module may collect only one piece offingerprint data, and cache the collected fingerprint data. In addition,to increase fingerprint definition and improve fingerprint datarecognition efficiency, the fingerprint collection module may collect aplurality of pieces of fingerprint data, select one optimal piece offingerprint data from the plurality of pieces of fingerprint datathrough comparison, and cache the data.

Optionally, the fingerprint collection module may further determine, bydetermining whether the fingerprint collection module and the CPU aresynchronously powered on, whether to cache the collected fingerprintdata. In actual application, the CPU may output a high level or a lowlevel to the fingerprint collection module by using a GPIO pin. Thefingerprint collection module determines, based on the input level,whether the CPU is initialized. If the fingerprint collection moduledetermines that the CPU is initialized, but fingerprint data collectionis not completed, the fingerprint collection module may directly sendsubsequently collected fingerprint data to the fingerprint recognitionmodule instead of caching the collected fingerprint data, therebyimproving fingerprint data recognition efficiency.

After receiving the fingerprint data sent by the fingerprint collectionmodule, the fingerprint recognition module matches the fingerprint datawith the preset fingerprint data that is prestored. If the matchingsucceeds, the user logs in to the terminal device. In the fingerprintrecognition module, fingerprint data of one user may be prestored, orfingerprint data of a plurality of users who are allowed to log in tothe terminal device may be prestored.

In a possible implementation, the Windows system is used as an example.The fingerprint recognition module sends a matching success message tothe login module, and the login module may log in to the system. Thelogin module may be a software module for identity recognition in theWindows system, or may be software and/or hardware for sending a logininstruction to the Windows system.

Alternatively, after the verification succeeds, the fingerprintrecognition module may send the prestored fingerprint data to the loginmodule. This implementation does not change a fingerprint loginauthentication manner of the system, and may be adapted to variousexisting systems.

In a possible implementation, after completing fingerprint recognition,the fingerprint recognition module may send the matching success messageor the prestored fingerprint data to the login module. Alternatively,there may be a time difference between a fingerprint matching successand system login, in other words, when fingerprint matching succeeds,the system has not entered a login stage. In this case, the fingerprintrecognition module may cache a matching success result, and send thematching success message or the preset fingerprint data to the loginmodule when the system enters the login stage.

When the fingerprint recognition module is an MCU, the MCU prestores oneor more pieces of fingerprint data, and the MCU is exclusivelyconfigured to perform fingerprint data matching. In addition, thefingerprint collection module may further determine, by determiningwhether the fingerprint collection module and the MCU are synchronouslypowered on, whether to cache the collected fingerprint data. In actualapplication, the MCU may output a high-level IO signal or a low-level IOsignal to the fingerprint collection module. The fingerprint collectionmodule determines, based on the input level, whether the MCU is poweredon. If the fingerprint collection module and the MCU are notsynchronously powered on, in other words, the fingerprint collectionmodule is powered on, but the MCU is not powered on, the fingerprintcollection module may cache the collected fingerprint data, and afterthe MCU is powered on, the fingerprint collection module sends thecached fingerprint data to the MCU, so that the MCU performs fingerprintdata matching. If the fingerprint collection module determines that thefingerprint collection module and the MCU are synchronously powered on,in other words, the fingerprint collection module determines that theMCU is powered on, but fingerprint data collection is not completed, thefingerprint collection module directly sends subsequently collectedfingerprint data to the MCU instead of caching the collected fingerprintdata, thereby improving fingerprint recognition efficiency. In addition,if the fingerprint recognition module is an MCU, because the MCU isexclusively configured to perform fingerprint data matching, if thecollected fingerprint data fails to match the preset fingerprint datathat is prestored in the MCU, before the terminal device enters a logininterface, the terminal device may send prompt information to the userto remind the user of a fingerprint input error, thereby improving userexperience.

When the fingerprint recognition module is an MCU, after matching thefingerprint data collected by the fingerprint collection module with thepreset fingerprint data that is prestored, the MCU may directly send amatching result to the CPU, so that the CPU controls, based on thematching result, whether to log in to the terminal device. If thematching succeeds, the user logs in to the terminal device; or if thematching fails, prompt information is output to remind the user of afingerprint input error. After performing fingerprint data matching, theMCU directly sends the matching result to the CPU, so that CPUprocessing efficiency can be improved. Moreover, after performingfingerprint data matching, if the matching succeeds, the MCU maydirectly send successfully matched fingerprint data to the CPU. The CPUstores the fingerprint data, and controls the user to log in to theterminal device. If the CPU does not receive fingerprint data sent bythe MCU, it indicates that the matching fails, and the CPU outputsprompt information to remind the user of a fingerprint data input error.

Optionally, the terminal device further includes a contact, and thepower button interworks with the contact. When the contact is closed, astroke of the power button is less than or equal to a maximum stroke ofthe power button.

Specifically, FIG. 5 is a schematic structural diagram 1 of a powerbutton. As shown in FIG. 5, because a power button 11 interworks with acontact 12, when a user presses the power button 11, the contact 12 alsomoves accordingly, so that the power control module supplies power toanother component of the terminal device. When the user presses thepower button 11, the contact 12 is closed, in other words, a circuit isclosed, and a stroke of the power button 11 is equal to a maximum strokeof the power button. In this case, because the contact is closed, inother words, the fingerprint collection module can be powered on whenthe power button is pressed to the maximum stroke, after the userpresses the power button, a finger needs to stay on the power button fora preset period of time, to ensure completeness and accuracy offingerprint data collection. The preset period of time may be set basedon experience or an actual situation. For example, the preset period oftime may be set to 1 s or 1.5 s. A specific value of the preset periodof time is not limited in this embodiment.

The terminal device may further output prompt information, includingtext information, acoustic information, or light information, to remindthe user to press for a period of time. For example, a progress bar isshown on a screen, or an indicator light changes from red to green, sothat the user can know whether fingerprint recognition succeeds. TheWindows system is used as an example. It takes several seconds to dozensof seconds from power-on to login interface display. If fingerprintrecognition does not succeed when the user presses the power button, butthis is found after a login interface is displayed on the screen,fingerprint recognition has to be performed once again, causing aninconvenient secondary operation. Further, because the fingerprintcollection module is disposed on the power button, the power button maybe unintentionally pressed in a second time of fingerprint recognition,making the terminal device to shut down, and causing a misoperation.

FIG. 6 is a schematic structural diagram 2 of a power button. As shownin FIG. 6, on the basis of the foregoing case, when a user presses thepower button, and a contact is closed, in other words, a circuit isclosed, and a stroke of the power button is less than a maximum strokeof the power button. In this case, because the contact is closed, inother words, the fingerprint collection module is powered on when thepower button has not been pressed to the maximum stroke, the user onlyneeds to press the power button to the maximum stroke, so that thefingerprint collection module collects fingerprint data, therebyimproving fingerprint data collection efficiency. In addition, to ensurecompleteness and accuracy of fingerprint data collection, a finger maystay on the power button for a preset period of time when the userpresses the power button. The terminal device may also notify afingerprint recognition result in the foregoing listed manners.

The terminal device provided in this embodiment of this applicationincludes the power button, the fingerprint collection module, thefingerprint recognition module, the power control module, and the loginmodule, and the fingerprint collection module is disposed on the powerbutton. The power control module is configured to: when a power-onsignal is detected, control power output to supply power to thefingerprint collection module; the fingerprint collection module isconfigured to collect the fingerprint data, and send the fingerprintdata to the fingerprint recognition module; the fingerprint recognitionmodule is configured to match the fingerprint data with the presetfingerprint data that is prestored; and the login module is configuredto log in to the terminal device when the matching performed by thefingerprint recognition module succeeds. Because the fingerprintcollection module is disposed on the power button, after the userpresses the power button, and power is supplied to the fingerprintcollection module, the fingerprint collection module starts to collectthe fingerprint data. In this way, the fingerprint data may be input ina process of completing power-on. Therefore, the following phenomenoncan be avoided: Power-on and fingerprint authentication operations needto be performed a plurality of times, and power needs to be continuouslysupplied to a fingerprint sensor in a shutdown state. In this way, notonly terminal device login efficiency can be improved, but also abattery life of the terminal device can be increased.

It may be clearly understood by a person skilled in the art that, forthe purpose of convenient and brief description, division of theforegoing function modules is used only as an example for illustration.In actual application, the foregoing functions can be allocated todifferent function modules and implemented based on a requirement, inother words, an inner structure of an apparatus is divided intodifferent function modules to implement all or some of the functionsdescribed above. For a detailed working process of the foregoing system,apparatus, and unit, refer to a corresponding process in the foregoingmethod embodiments. Details are not described herein again.

In the several embodiments provided in this application, it should beunderstood that the disclosed system, apparatus, and method may beimplemented in other manners. For example, the described apparatusembodiment is merely an example. For example, the module or unitdivision is merely logical function division and there may be otherdivision in actual implementation. For example, a plurality of units orcomponents may be combined or integrated into another system, or somefeatures may be ignored or not performed. In addition, the displayed ordiscussed mutual couplings or direct couplings or communicationconnections may be implemented by using some interfaces. The indirectcouplings or communication connections between the apparatuses or unitsmay be implemented in electronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,and may be located in one position, or may be distributed on a pluralityof network units. Some or all of the units may be selected based onactual requirements to achieve the objectives of the solutions of theembodiments.

In addition, functional units in the embodiments of this application maybe integrated into one processing unit, or each of the units may existalone physically, or two or more units may be integrated into one unit.The integrated unit may be implemented in a form of hardware, or may beimplemented in a form of a software functional unit.

When the integrated unit is implemented in the form of a softwarefunctional unit and sold or used as an independent product, theintegrated unit may be stored in a computer-readable storage medium.Based on such an understanding, the technical solutions of thisapplication essentially, or the part contributing to the prior art, orall or some of the technical solutions may be implemented in the form ofa software product. The computer software product is stored in a storagemedium and includes several instructions for instructing a computerdevice (which may be a personal computer, a server, or a network device)or a processor (processor) to perform all or some of the steps of themethods described in the embodiments of this application. The foregoingstorage medium includes any medium that can store program code, such asa USB flash drive, a removable hard disk, a read-only memory (ROM,Read-Only Memory), a random access memory (RAM, Random Access Memory), amagnetic disk, or an optical disc.

What is claimed is:
 1. A terminal device, comprising: a power button; afingerprint sensor disposed on the power button; a processor; a memoryconfigured to store instructions that when executed by the processor,cause the terminal device to: when the terminal device is in a shutdownstate, in response to detecting a pressing of the power button by afinger, simultaneously: powering on the terminal device; powering on thefingerprint sensor; and collecting, by the fingerprint sensor,fingerprint data before the finger leaves the power button; and log into the terminal device in response to the fingerprint data matching withpreset fingerprint data.
 2. The terminal device of claim 1, furthercomprising a contact configured to move with the power button and close,wherein a contact closing stroke of the power button is less than amaximum stroke of the power button.
 3. (canceled)
 4. The terminal deviceof claim 1, further comprising a fingerprint recognition processorconfigured to match the fingerprint data with the preset fingerprintdata.
 5. The terminal device of claim 4, wherein the fingerprintrecognition processor comprises a micro control unit (MCU).
 6. Theterminal device of claim 1, wherein the terminal device is configured tooutput prompt information.
 7. The terminal device of claim 6, whereinthe prompt information comprises at least one of: prompt informationinforming a user that an input fingerprint is not matched with presetfingerprint data; prompt information prompting the user to move thefinger; prompt information prompting the user to press the power buttonagain; or prompt information prompting the user to press the powerbutton for a period of time.
 8. The terminal device of claim 6, whereinthe prompt information comprises textual information.
 9. The terminaldevice of claim 6, wherein the prompt information comprises acousticinformation.
 10. The terminal device of claim 6, wherein the promptinformation comprises light information.
 11. The terminal device ofclaim 1, wherein the terminal device is further configured to cache thefingerprint data.
 12. A method implemented by a terminal device andcomprising: receiving a pressing operation, input by a finger, on apower button of the terminal device, when the terminal device is in ashutdown state; in response to receiving the pressing operation on thepower button, simultaneously: powering on the terminal device; poweringa fingerprint sensor of the terminal device; and collecting fingerprintdata before the finger leaves the power button; and logging in to theterminal device in response to the fingerprint data matching with presetfingerprint data.
 13. The method of claim 12, wherein the terminaldevice further comprises a contact configured to move with the powerbutton and close, wherein a contact closing stroke of the power buttonis less than a maximum stroke of the power button.
 14. (canceled) 15.The method of claim 12, wherein the terminal device further comprises afingerprint recognition processor, wherein the fingerprint recognitionprocessor comprises a central processing unit (CPU) or a micro controlunit (MCU), and wherein the method further comprises matching, by thefingerprint recognition processor, the fingerprint data with the presetfingerprint data.
 16. The method of claim 12, wherein the method furthercomprises outputting prompt information when the fingerprint data failsto match the preset fingerprint data.
 17. The method of claim 16,wherein the prompt information comprises at least one of: promptinformation informing a user that an input fingerprint is not matchedwith preset fingerprint data; prompt information prompting the user tomove the finger; prompt information prompting the user to press thepower button again; or prompt information prompting the user to pressthe power button for a period of time.
 18. The method of claim 16,wherein the prompt information comprises at least one of: textinformation; light information; or acoustic information.
 19. The methodof claim 12, wherein the method further comprises caching thefingerprint data.
 20. A non-transitory computer readable storage mediumstoring one or more programs, the one or more programs includinginstructions which, when executed by an electronic device, cause theelectronic device to: receive a pressing operation, input by a finger,on a power button of the electronic device, when the electronic deviceis in a shutdown state; in response to receiving the pressing operationon the power button, simultaneously: power on the electronic device;power a fingerprint sensor of the electronic device; and collectfingerprint data before the finger leaves the power button; and log into the electronic device in response to the fingerprint data match witha preset fingerprint data.
 21. The terminal device of claim 4, whereinthe fingerprint recognition processor comprises a central processingunit (CPU).
 22. The non-transitory computer readable storage medium ofclaim 20, wherein the pressing operation comprises less than a maximumstroke of the power button.